package com.gtenacg.cartoonservice.service;

import com.gtenacg.cartoonservice.pojo.model.CartoonType;
import org.springframework.dao.DuplicateKeyException;

import java.util.List;

/**
* @author 86198
* @description 针对表【cartoon_type(漫画类型)】的数据库操作Service
* @createDate 2024-05-09 11:28:02
*/
public interface CartoonTypeService {

    List<CartoonType> list();

    Integer insert(CartoonType cartoonType) throws DuplicateKeyException;

    void update(CartoonType cartoonType);

    void delete(List<Integer> ids);

    List<CartoonType> search(String name);
}
